const Router = require('koa-router')

const router = Router()

const auth = require('../middleware/auth')
const Comment = require('../controllers/comment.controller')

router
	.post('/insert',auth(),Comment.addComment) //新增评论
	.post('/delete',auth(),Comment.deleteComment) //删除评论
	.get('/all',auth({required:false}),Comment.allComment) //查询评论

module.exports = router